<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script type="module">
      /* 错
      const uname = "jack";
      import * as m3 from "./3.js";
      */

      /* 错
      if (true) {
        import * as m3 from "./3.js";
      }
      */
      if (true) {
        import("./3.js")
          .then((data) => {
            console.log(data);
          })
          .catch((error) => {
            console.log(error);
          });
      }
    </script>
  </body>
</html>
